import { HashRouter as Router, Route, Switch, Redirect } from "react-router-dom";
      import Page1 from '../pages/page1'
  import Page2 from '../pages/page2'
  import Page3 from '../pages/page3'
 
      const RouterView = () => {
        return (
          <Router>
          <Redirect to="/home"></Redirect>
            <Switch>
              <Route path='/home' component={Page1}></Route>
  <Route path='/profile' component={Page2}></Route>
  <Route path='/question' component={Page3}></Route>
 
            </Switch>
          </Router>
        );
      };
      export default RouterView;
      
        